//
// Created by summerday on 2021/6/5.
//

#include "sstring.h"
#include "iostream"

using namespace std;

int main(){
    SString s;

    char *p = "abc";

    cout << p << endl;

    cout  << p + 1 << endl;

    cout << *p << endl;

    int i = 0;
    while('\0' != *(p + i)){
        cout << *(p + i++) << endl;
    }
    return 0;
}